package rapier.sso.common.exception;

public enum SystemErrorType implements ErrorType {

	SYSTEM_BUSY(500, "系统繁忙,请稍候再试!"),
	SYSTEM_ERROR(500, "系统异常,请稍候再试!"),
	CLIENT_AUTH_ERROR(10001, "非法跳转!"),
	;

	/**
	 * 错误类型码
	 */
	private int code;
	/**
	 * 错误类型描述信息
	 */
	private String mesg;

	SystemErrorType(int code, String mesg) {
		this.code = code;
		this.mesg = mesg;
	}

	public int getCode() {
		return code;
	}

	public String getMesg() {
		return mesg;
	}
}
